package until;

import java.util.Map;

/**
 * @Description
 * @auther lileilei
 * @create 2020-01-04 13:51
 */
public class RquestsSwich {
    public static Map<String, Object> defaultTestMethod(String methods, Map<String, Object> map, String url) {
        RequestEncapsulation requestEncapsulation = new RequestEncapsulation();
        Map<String, Object> string = null;
        switch (methods) {
            case "GET":
                string = requestEncapsulation.getmethod(map, url);
                break;

            case "POST":
                string = requestEncapsulation.postmethod(map, url);
                break;
            case "DELETE":
                string = requestEncapsulation.deletemethod(map, url);
            case "PUT":
                string = requestEncapsulation.deletemethod(map, url);
            case "getsendfile":
                string = requestEncapsulation.getsendfile(map, url);
        }
        return string;
    }
}
